package com.example.demo.entity;

public class Share {
    private int shareId;
    private String account;
    private long timestamp;
    private String message;

    public int getShareId() {
        return shareId;
    }

    public void setShareId(int id) {
        this.shareId = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String from) {
        this.account = from;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String text) {
        this.message = text;
    }


    public Share(int shareId, String account, long timestamp, String message) {
        this.shareId = shareId;
        this.account = account;
        this.timestamp = timestamp;
        this.message = message;
    }
    public Share(){}



    @Override
    public String toString() {
        return "Share{" +
                "id=" + shareId +
                ", from='" + account + '\'' +
                ", timestamp=" + timestamp +
                ", text='" + message + '\'' +
                '}';
    }
}
